package com.yc.videocache;

/**
 * Indicates any error in work of {@link ProxyCache}.
 */

/**
 * ProxyCacheException
 *
 * @since 2021-05-10
 */
public class ProxyCacheException extends Exception {
    private static final String LIBRARY_VERSION = ". Version: " + BuildConfig.YC_VERSION_NAME;

    /**
     * ProxyCacheException
     *
     * @param message
     */
    public ProxyCacheException(String message) {
        super(message + LIBRARY_VERSION);
    }

    /**
     * ProxyCacheException
     *
     * @param message
     * @param cause
     */
    public ProxyCacheException(String message, Throwable cause) {
        super(message + LIBRARY_VERSION, cause);
    }

    /**
     * ProxyCacheException
     *
     * @param cause
     */
    public ProxyCacheException(Throwable cause) {
        super("No explanation error" + LIBRARY_VERSION, cause);
    }
}
